package org.model;
import java.util.HashSet;
import java.util.Set;

/**
 * Kcb entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Kcb implements java.io.Serializable {

	private String kch;
	private String kcm;
	private Short kxxq;
	private Integer xs;
	private Integer xf;
	private Set xss=new HashSet();

	// Constructors

	/** default constructor */
	public Kcb() {
	}

	/** minimal constructor */
	public Kcb(String kch) {
		this.kch = kch;
	}

	/** full constructor */
	public Kcb(String kch, String kcm, Short kxxq, Integer xs, Integer xf) {
		this.kch = kch;
		this.kcm = kcm;
		this.kxxq = kxxq;
		this.xs = xs;
		this.xf = xf;
	}

	// Property accessors

	public String getKch() {
		return this.kch;
	}

	public void setKch(String kch) {
		this.kch = kch;
	}

	public String getKcm() {
		return this.kcm;
	}

	public void setKcm(String kcm) {
		this.kcm = kcm;
	}

	public Short getKxxq() {
		return this.kxxq;
	}

	public void setKxxq(Short kxxq) {
		this.kxxq = kxxq;
	}

	public Integer getXs() {
		return this.xs;
	}

	public void setXs(Integer xs) {
		this.xs = xs;
	}

	public Integer getXf() {
		return this.xf;
	}

	public void setXf(Integer xf) {
		this.xf = xf;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Kcb))
			return false;
		Kcb castOther = (Kcb) other;

		return ((this.getKch() == castOther.getKch()) || (this.getKch() != null
				&& castOther.getKch() != null && this.getKch().equals(
				castOther.getKch())))
				&& ((this.getKcm() == castOther.getKcm()) || (this.getKcm() != null
						&& castOther.getKcm() != null && this.getKcm().equals(
						castOther.getKcm())))
				&& ((this.getKxxq() == castOther.getKxxq()) || (this.getKxxq() != null
						&& castOther.getKxxq() != null && this.getKxxq()
						.equals(castOther.getKxxq())))
				&& ((this.getXs() == castOther.getXs()) || (this.getXs() != null
						&& castOther.getXs() != null && this.getXs().equals(
						castOther.getXs())))
				&& ((this.getXf() == castOther.getXf()) || (this.getXf() != null
						&& castOther.getXf() != null && this.getXf().equals(
						castOther.getXf())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getKch() == null ? 0 : this.getKch().hashCode());
		result = 37 * result
				+ (getKcm() == null ? 0 : this.getKcm().hashCode());
		result = 37 * result
				+ (getKxxq() == null ? 0 : this.getKxxq().hashCode());
		result = 37 * result + (getXs() == null ? 0 : this.getXs().hashCode());
		result = 37 * result + (getXf() == null ? 0 : this.getXf().hashCode());
		return result;
	}
}